#include<iostream>
using  namespace  std;

int main()
{
    cout<<"--------------1----------------\n";
    cout.width(10);
    cout<<123<<endl;

    cout<<"--------------2----------------\n";
    cout<<123<<endl;

    cout<<"--------------3----------------\n";
    cout.fill('&');
    cout.width(10);
    cout<<123<<endl;

    cout<<"--------------4----------------\n";
    cout.setf(ios::left);
    cout<<123<<endl;

    cout<<"--------------5----------------\n";
    cout.precision(4);
    cout<<123.45678<<endl;

    cout<<"--------------6----------------\n";
    cout.setf(ios::fixed);
    cout<<123.45678<<endl;

    cout<<"--------------7----------------\n";
    cout.width(15);
    cout.unsetf(ios::fixed);
    cout.setf(ios::scientific);
    cout<<123.45678<<endl;

    cout<<"--------------8----------------\n";
    int a=21;
    cout.setf(ios::showbase);
    cout.unsetf(ios::dec);
    cout.setf(ios::hex);
    cout<<a<<endl;

    return 0;
}